package com.ybkj.o2o.zhuanche.common;

import java.math.BigDecimal;
import java.math.BigInteger;

public class MemberOrderVo {


  private Long id;

  private String name;

  private String companyName;

  private String phone;

  private long finishNums;// 订单数

  private BigDecimal money;// 订单金额


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  public long getFinishNums() {
    return finishNums;
  }

  public void setFinishNums(long finishNums) {
    this.finishNums = finishNums;
  }
  /**
   * 金额为空时放回0.
   * @return 金额.
   */
  
  public BigDecimal getMoney() {
    if (null == money) {
      return new BigDecimal(BigInteger.ZERO);
    }
    return money;
  }

  public void setMoney(BigDecimal money) {
    this.money = money;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

}
